package cn.hdu.liang.core.dao.order;

import cn.hdu.liang.core.bean.order.Detail;
import cn.hdu.liang.core.query.order.DetailQuery;

import java.util.List;


public interface DetailDao {

    //添加
    public Integer addDetail(Detail detail);

    //根据主键查找
    public Detail getDetailByKey(Integer id);

    //根据主键批量查找
    public List<Detail> getDetailsByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateDetailByKey(Detail detail);

    //分页查询
    public List<Detail> getDetailListWithPage(DetailQuery detailQuery);

    //集合查询
    public List<Detail> getDetailList(DetailQuery detailQuery);

    //总条数
    public int getDetailListCount(DetailQuery detailQuery);
}
